package com.synergy.stockflow.product.service.impl;

import com.synergy.stockflow.product.entity.BomVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synergy.stockflow.product.entity.Bom;
import com.synergy.stockflow.product.mapper.BomMapper;
import com.synergy.stockflow.product.service.BomService;
@Service
public class BomServiceImpl extends ServiceImpl<BomMapper, Bom> implements BomService{

    @Override
    public List<Bom> selectspecificationsAndModels(String materialId) {
        return baseMapper.selectspecificationsAndModels(materialId);
    }

    @Override
    public int deleteM(String materialId) {
        baseMapper.deleteM(materialId);
        return 0;
    }

    @Override
    public List<BomVo> selectBom(String materialId){
        return baseMapper.selectBom(materialId);
    }
}
